package c3.example;
class Student07{
    private String name;
    private  int age;
    public Student07(){ }
    public  Student07(String n){
        name = n;
    }
    public Student07(String n,int a){
        name = n;
        age=a;
    }
    public  void  read(){
        System.out.println("我是:"+name+",年龄："+age);
    }
}
public class example07 {
    public static void main(String[] args) {
        Student07 stu = new Student07("张三", 18);
        stu.read();
        stu.read();
    }
}
